package cn.netjava.chapter9.Thread;

import java.util.List;

public class MonitorTest extends Thread{
	
	public void MonitorTest(java.util.List<FindFiles> resultList){
		this.resultList = resultList;
	}
	
	public void run(){
		List result;
		boolean over=false;
		while(!over){
			for(int i=0;i<resultList.size();i++){
			 FindFiles ff =resultList.get(i);
			 if(ff.isOver()){
				 result.add(ff.result());
			 }
			}
		}
			
	}

	
	
	
	
	
	java.util.List<FindFiles> resultList;
}
